Skip to content

Conversation

@olitharp-nci
Copy link
Contributor

@olitharp-nci olitharp-nci commented Apr 15, 2025

  • Removes previous babel and rollup

Closes #1876

  • Adds workflow permissions since we were messing with the yml anyway

Closes #2086

Pull Request Details

Add description

Closes #

Author PR Checklist

Items that the author of the PR is responsible for checking before submitted the PR.

General:

  • I have reviewed the acceptance criteria defined in the ticket and ensured the work has been completed.
  • The commit message passes all quality commit message standards.
  • Unit tests have been updated or created to reflect any javascript changes.
  • Storybook scenarios have been updated or created to reflect any html/css/js changes.

Accessibility:

  • WCAG 2.1 Level AA requirements have been met.

Development:

  • Any new or updated javascript code has 100% unit test coverage.
  • New or updated breakpoints have regression images.
  • Breaking changes have been thoroughly documented in the PR.

Product Reviewer PR Checklist

Items the product team is responsible for reviewing.

General:

  • There are no unexpected or unapproved regression image changes.

  • Functionality of interactive elements meet the acceptance criteria.
  • The product is visually and functionally the same across the different browsers.

Accessibility:

  • AxeDev Tools: there are no new or outstanding accessibility issues introduced in this PR.
  • Lighthouse: scores have not noticeably decreased during this PR.
  • Wave: there are no new errors or contrast errors introduced in this PR.

Design Reviewer PR Checklist

Items the design team is responsible for reviewing. 


General:

  • New or updated features introduced in this PR are developed mobile-first.
  • Breakpoint changes and regression images match those breakpoints.
  • This PR has been tested in all supported browsers at all breakpoints.

Developer Reviewer PR Checklist

Items the development team is responsible for reviewing.

General:

  • New code passes code quality standards set by industry standards.
  • The expected Storybook stories have been added or updated for the new or updated feature.
  • The expected unit tests have been added or updated for the new or updated feature.

Accessibility:

  • VoiceOver: Described content matches with what was expected.
  • Keyboard navigation: new or updated features and content are navigable via the keyboard.

@github-actions
Copy link

1 similar comment
@github-actions
Copy link

@olitharp-nci olitharp-nci force-pushed the ticket/1876-cdn branch 4 times, most recently from 8ce9801 to 257c8c7 Compare August 26, 2025 15:20
@bryanpizzillo bryanpizzillo requested a review from Copilot August 26, 2025 19:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces multiple distribution variants for the NCIDS CSS and JavaScript packages, creating three different builds: minimal, standard, and full versions for CDN distribution. The changes replace the previous Babel/Rollup configuration with a new build system that generates multiple outputs for different use cases.

  • Replaces previous build system with new Rollup configuration for multiple JavaScript builds
  • Creates three CSS variants (minimal, full, standard) and corresponding JavaScript bundles
  • Adds CDN packaging and deployment automation through GitHub Actions

Reviewed Changes

Copilot reviewed 25 out of 26 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/ncids-js/rollup.config.mjs New Rollup configuration generating UMD and ESM bundles for three variants
packages/ncids-css/*.scss New entry points for minimal and full CSS variants
packages/ncids-css/packages/ncids-*/_index.scss Package definitions for different NCIDS variants
scripts/zip-builds.sh Script to package CDN distributions
.github/workflows/workflow.yml GitHub Actions workflow for CDN build and deployment
testing/ncids-css-testing/src/stories/**/*.scss Updated imports to use new variant names
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@olitharp-nci olitharp-nci force-pushed the ticket/1876-cdn branch 2 times, most recently from a9239c4 to c9d1ce5 Compare August 26, 2025 20:08
Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First round, but it is close to being there.


// NCIDS
// -------------------------------------
@forward 'nci-autocomplete';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you pull in minimal into full so we say that we don't have to worry about keeping things in sync.

Also can you forward all the packages we have and don't rely on packages forwarding others. e.g., add nci-back-to-top even though nci-footer imports it. Because today nci-footer imports it, but a pr could go in changing that, and then we would have to know to go here to add it. (and we will most likely forget)

@@ -0,0 +1,13 @@
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be auto inits so that someone can just add thse to their page. I think we should exclude anything without a normal autoinit and make a backlog for it.

* - Footer
*/

export * from 'src/components/nci-header';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be auto inits so that someone can just add thse to their page.

@olitharp-nci olitharp-nci force-pushed the ticket/1876-cdn branch 9 times, most recently from e55bc2a to 1f65e79 Compare September 11, 2025 20:18
@olitharp-nci olitharp-nci force-pushed the ticket/1876-cdn branch 6 times, most recently from 5a4bda9 to 646a334 Compare September 16, 2025 13:46
@olitharp-nci olitharp-nci force-pushed the ticket/1876-cdn branch 5 times, most recently from 3e63950 to a86a921 Compare October 16, 2025 07:55
@bennettcc bennettcc requested a review from a team October 22, 2025 16:10
Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The utility classes seem to be missing from the documentation site. I noticed it with the version bar, but all the utility pages are broken.

@olitharp-nci olitharp-nci force-pushed the ticket/1876-cdn branch 3 times, most recently from ff1ea3e to 70b45ed Compare November 10, 2025 17:45
@olitharp-nci olitharp-nci force-pushed the ticket/1876-cdn branch 7 times, most recently from 481fb84 to 4c8c38e Compare November 17, 2025 21:35
@olitharp-nci
Copy link
Contributor Author

I can't approve my own PR, but after talking to Bryan last night and looking over all the commits, lgtm (after merging commits)

@bennettcc
Copy link

Per @blilianyu's testing on 12/17:

The spanish language toggle has a special characters issue

image

Copy link
Contributor

@blilianyu blilianyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passes for design cc: @andyvanavery31

jfrank-nih and others added 2 commits December 18, 2025 13:54
- Added tslib as a dependency for ncids-js as it is a peer dep for rollup typescript.
- Updated ncids-css to use vite instead of webpack because it works.
  There are some plugins for postcss that we could have used,
  but we know vite works because we use it for storybook.
- Setup js example site such that it allows for the use of the built files in ncids-js and ncids-css.
  Without making super major changes this does require one to make sure they are building those
  packages before running the test site. In a perfect scenario the ncids-js and ncids-css
  dependencies would be built before the ncids-js-testing package.
- I did update the prepare for ncids-css to also build. This should make sure there is at least
  some sort of css for ncids-js-testing. ncids-js already builds on prepare.

Closes #1876
@bryanpizzillo bryanpizzillo merged commit f58b6f4 into develop Dec 18, 2025
6 checks passed
@bryanpizzillo bryanpizzillo deleted the ticket/1876-cdn branch December 18, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow does not contain permissions Enabler: Provide alternate mechanisms for using NCIDS on websites

7 participants